<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:pe="http://primefaces.org/ui/extensions"
	xmlns:f="http://java.sun.com/jsf/core">

	<p:dialog header="#{msg['message.upload.adjuntar']}" id="dlgAdjDoc"
		widgetVar="dlgFileUpload" modal="true" dynamic="true" draggable="false"
		resizable="false">
		<p:panel>
			<p:panelGrid>
				<p:row>
					<p:column>
						<p:messages id="fUmessages" showDetail="true" autoUpdate="true"
							closable="true" />
						<p:fileUpload cancelLabel="#{msg['message.upload.cancelar']}"
							uploadLabel="#{msg['message.upload.adjuntar']}"
							label="#{msg['message.upload.examinar']}"
							fileUploadListener="#{fileUploadVW.handleFileUpload}"
							mode="advanced" dragDropSupport="false" multiple="true"
							update="fUmessages" sizeLimit="100000" fileLimit="3"
							allowTypes="/(\.|\/)(pdf|doc?x|jpe?g|png)$/" />
					</p:column>
				</p:row>
				<p:row>
					<p:column>
						<p:outputLabel value="#{msg['message.upload.nota']}" />
					</p:column>
				</p:row>
			</p:panelGrid>

			<h:panelGroup layout="block" style="text-align:center;">
				<p:commandButton value="#{msg['message.upload.cerrar']}"
					onclick="dlgFileUpload.hide();" global="false">
				</p:commandButton>
			</h:panelGroup>
		</p:panel>
	</p:dialog>

</ui:composition>